home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / T / TransDisplay 3.05.sit / TransDisplay v 3.05 / Interface / TransDisplay.intf < prev    next >
Encoding:
Text File  |  1994-02-23  |  2.4 KB  |  70 lines  |  [TEXT/PJMM]

  1. { Pascal interface specification for TransDisplay }
  2. { for:       TransDisplay 3.05 }
  3. { last edit: 23 Feb 94 }
  4.  
  5. {----------------------------------------------------------------------------}
  6. unit TransDisplay;
  7. {----------------------------------------------------------------------------}
  8.  
  9. interface
  10.  
  11. {----------------------------------------------------------------------------}
  12.     type
  13. {----------------------------------------------------------------------------}
  14.  
  15. { Procedure type below is equivalenced to ProcPtr.  It's used so }
  16. { that procedure specifications will read more similarly to their }
  17. { C counterparts.  The comment preceding the type definition shows how }
  18. { activate notfication procedures should be written. }
  19.  
  20.         { procedure Activate (active:Boolean); }
  21.         TDispActivateProcPtr = ProcPtr;
  22.  
  23. {----------------------------------------------------------------------------}
  24. { Interface routines }
  25. {----------------------------------------------------------------------------}
  26.  
  27.     function NewDWindow (bounds: Rect;
  28.                                     title: Str255;
  29.                                     visible: Boolean;
  30.                                     behind: WindowPtr;
  31.                                     goAway: Boolean;
  32.                                     refCon: LongInt): WindowPtr;
  33.     function GetNewDWindow (resourceNum: Integer;
  34.                                     behind: WindowPtr): WindowPtr;
  35.     function IsDWindow (wind: WindowPtr): Boolean;
  36.     function GetDWindowTE (wind: WindowPtr): TEHandle;
  37.     procedure SetDWindowStyle (wind: WindowPtr;
  38.                                     font: Integer;
  39.                                     size: Integer;
  40.                                     wrap: Integer;
  41.                                     just: Integer);
  42.     procedure SetDWindowPos (wind: WindowPtr;
  43.                                     lineNum: Integer);
  44.     procedure SetDWindowNotify (wind: WindowPtr;
  45.                                     p: TDispActivateProcPtr);
  46.     procedure SetDWindowFlush (wind: WindowPtr;
  47.                                     maxText: LongInt;
  48.                                     flushAmt: LongInt);
  49.     procedure SetDWindow (wind: WindowPtr);
  50.     function GetDWindow: WindowPtr;
  51.     procedure FlushDWindow (wind: WindowPtr;
  52.                                     byteCount: LongInt);
  53.  
  54.     procedure DisplayText (text: Ptr;
  55.                                     len: LongInt);
  56.     procedure DisplayString (str: Str255);
  57.     procedure DisplayCString (str: Ptr);    { not useful from within Pascal }
  58.     procedure DisplayLong (l: LongInt);
  59.     procedure DisplayShort (i: Integer);
  60.     procedure DisplayChar (c: char);
  61.     procedure DisplayLn;
  62.     procedure DisplayBoolean (b: Boolean);
  63.     procedure DisplayHexChar (c: char);
  64.     procedure DisplayHexShort (i: Integer);
  65.     procedure DisplayHexLong (l: LongInt);
  66.     procedure DisplayOSType (theType: OSType);
  67.  
  68.  
  69. implementation
  70. end.